package PaymentTest;

import com.zhaoye.dao.PaymentDao;
import com.zhaoye.entities.Payment;
import com.zhaoye.service.PaymentService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

/**
 * @author feng
 * @Date 2021/11/10 15:44
 */
public class PaymentTest01 {

    @Resource
    PaymentDao paymentDao;

    @Test
    public void selectPayment() {
        Long id = Long.valueOf(31);
        Payment payment = paymentDao.getPaymentById(id);
        System.out.println("id==" + payment.getId());
    }

}
